- 先开启 3.14 内核无线模块
1 | modprobe dhd && echo dhd >> /etc/modules |
- 由于和后续的 dnsmasq 冲突,需要关掉系统自带的 systemd-resolved 服务
1 | systemctl stop systemd-resolved |
- 安装要用的 dnsmasq 和 net-tools 组件
1 | apt install dnsmasq net-tools |
- 下载并安装 create_ap 工具
1 | git clone https://github.com/oblique/create_ap |
- 将以下内容保存至 /usr/bin/startap 。注意别忘了修改 YourSSIDHere YourPasswordHere 两个参数。如果有需要使用 2.4GHz 网络的,请去掉 –freq-band 5 –ieee80211ac 参数
1 | [Unit] |
并执行
1 | chmod +x /usr/lib/systemd/system/ap.service |